package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.NetInfo;

import java.util.List;
import java.util.Map.Entry;

public interface NetInfoManager {

    NetInfo getInfoByInfoId(DataSourceKey key, long info_id);

    NetInfo getInfoByNetId(DataSourceKey key, String netId);

    void saveOrUpdate(DataSourceKey key, NetInfo netInfo);

    void saveOrUpdateList(DataSourceKey key, List<NetInfo> netInfos);

    void saveReference(DataSourceKey key, long info_id, long netInfo_id);

    void saveReferenceList(DataSourceKey key, List<Entry<Long, Long>> mappingList);

    List<NetInfo> getAll(DataSourceKey key);

    List<String> getAllName(DataSourceKey key, int start, int limit);

    int getNameCount(DataSourceKey key);

}